﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wyborPacjentadoPrzeszczepu.aspx.cs" Inherits="STS.Pacjent.wyborPacjentadoPrzeszczepu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
    <br />
    <strong>Wybierz organ:</strong><br />
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" 
        DataTextField="organ" DataValueField="id_organu">
</asp:DropDownList>
    <asp:Button ID="Button1" runat="server" Text="OK" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:MGRConnectionString %>" 
    
        SelectCommand="SELECT [id_organu], [typ]+' '+[grupa_krwi] as organ FROM [organ] where id_osrodka=@tmp ORDER BY [id_organu]">
    <SelectParameters>
        <asp:ControlParameter ControlID="Label1" Name="tmp" PropertyName="Text" />
    </SelectParameters>
</asp:SqlDataSource>
    <asp:Label ID="test" runat="server" Text="Label"></asp:Label>
    <br />
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Button" />
</asp:Content>
